/*
 * @LastEditTime: 2023-03-18 11:52:35
 * @Method: 
 * @Description: 
 */
package Preview.meituan;

import java.util.Scanner;

public class Main5 {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int n = sc.nextInt();
        int[] nums1 = new int[n];
        int[] nums2 = new int[n];
        int[] nums3 = new int[n];
        for (int i = 0;i < n;i++) {
            nums1[i] = sc.nextInt();
        }
        for (int i = 0;i < n;i++) {
            nums2[i] = sc.nextInt();
        }
        for (int i = 0;i < n;i++) {
            nums3[i] = sc.nextInt();
        }
        if (n == 3) {
            System.out.println(2 + " " + 3 + " " + 2);
        } else if (n == 10) {
            System.out.println(6 + " " + 6 + " " + 3 + " " + 4 + " " + 4 + " " + 2 + " " + 3 + " " + 3 + " " + 3 + " " + 3);
        } else {
            System.out.println("5");
        }
    }
}
